package com.giveu.signature.bean;

import java.util.Map;

import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class PdfGenerateRequest {
	
	private String templateFastUrl;
	
	private byte[] templateByte;
	
	
	@Data
	public static class PdfTextRequest extends PdfGenerateRequest{
		
		@NotNull(message="参数不能为空")
		private Map<String, String> parameter;
	}
	
	@Data
	public static class HtmlRequest extends PdfGenerateRequest{
		
		@NotNull(message="参数不能为空")
		private Map<String, Object> parameter;
	}

}
